<?php
	include_once '../config.inc.php';
	$stmt = $pdo->prepare('select uid,uname from kp_usr');
	$stmt->execute();
	$uarrs = $stmt->fetchAll(PDO::FETCH_ASSOC);
	//print_r($uarrs);
	

?>
<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<script src="../js/jquery-3.1.1.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/kpmoney.js" type="text/javascript" charset="utf-8"></script>
	<link rel="stylesheet" type="text/css" href="css/kpmoney.css"/>
	<title>前台用户充值</title>
</head>
<body>
	<div id="kpmoney">
		<div class="title">
			后台管理->用户充值扣款
		</div>
		<div id="umoney">
			<form id="formmoney" action="" method="post">
				<ul>
					<li>
						用户:<select name="uid">
							<?php foreach($uarrs as $uarr){ ?>
							
							<option value="<?php echo $uarr['uid'] ?>"><?php echo $uarr['uname'] ?></option>
							<?php } ?>
						</select>
						
					</li>
					<li class="money">金额:<input type="text" name="money" id="money" value="" /></li>
					<li class="bz">备注:<textarea name="bz" rows="2" cols="30"></textarea></li>
					<li><input type="button" id="gomoney" value="确认操作"/></li>
				</ul>
			</form>
		</div>
		<div id="logs">
			
		</div>
	</div>
</body>
</html>